import product from '~/api/product'
import account from '~/api/account'
import order from '~/api/order'
import item from '~/api/item'
import talk from '~/api/talk'
import dataStatistic from '~/api/dataStatistic'

export default (context, inject) => {
    let repositories = {
        product: product(context.$axios),
        account: account(context.$axios),
        order: order(context.$axios),
        item: item(context.$axios),
        talk: talk(context.$axios),
        dataStatistic: dataStatistic(context.$axios),
    }
    inject('api', repositories)
}
